package com.xuecheng.manage_cms.service.impl;

import com.xuecheng.framework.domain.system.SysDictionary;
import com.xuecheng.manage_cms.dao.SystemDictionaryRepository;
import com.xuecheng.manage_cms.service.SystemDictionaryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SystemDictionaryServiceImpl implements SystemDictionaryService {
    @Resource
    SystemDictionaryRepository systemDictionaryRepository;
    /**
     * 根据type查询数据字典
     *
     * @param type 类型
     * @return 结果
     */
    @Override
    public SysDictionary findByType(String type) {
        return systemDictionaryRepository.findByDType(type);
    }
}
